package edu.bit.water.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import edu.bit.water.dto.DateUtils;

public class WasteWaterEva {

    private int id;

    public WasteWaterEva(int id, String evaPerson, String evaUnit, String companyType, String class2, String class1, String evaBasis, String companyName, String evaDate,String state) {
        this.id = id;
        this.evaPerson = evaPerson;
        this.evaUnit = evaUnit;
        this.state=state;
        this.companyType = companyType;
        this.class2 = class2;
        this.class1 = class1;
        this.evaBasis = evaBasis;
        this.companyName = companyName;
        this.evaDate = evaDate;
    }
    public WasteWaterEva(){}

    public String getEvaDate() {
        return evaDate;
    }

    public void setEvaDate(String evaDate) {
        this.evaDate = evaDate;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getClass1() {
        return class1;
    }

    public void setClass1(String class1) {
        this.class1 = class1;
    }

    public String getClass2() {
        return class2;
    }

    public void setClass2(String class2) {
        this.class2 = class2;
    }

    public String getCompanyType() {
        return companyType;
    }

    public void setCompanyType(String companyType) {
        this.companyType = companyType;
    }


    public String getEvaUnit() {
        return evaUnit;
    }

    public void setEvaUnit(String evaUnit) {
        this.evaUnit = evaUnit;
    }

    public String getEvaPerson() {
        return evaPerson;
    }

    public void setEvaPerson(String evaPerson) {
        this.evaPerson = evaPerson;
    }

    private String evaPerson;
    private String evaUnit;
    private String companyType;
    private String class2;
    private String class1;

    public void setState(String state) {
        this.state = state;
    }

    public String getState() {
        return state;
    }

    private String state;

    public WasteWaterEva(String evaBasis) {
        this.evaBasis = evaBasis;
    }

    public String getEvaBasis() {
        return evaBasis;
    }

    public void setEvaBasis(String evaBasis) {
        this.evaBasis = evaBasis;
    }

    private String evaBasis;        //评价依据
    private String companyName;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private String evaDate;


    public int getId() {return this.id;}
    public void setId(int id) {this.id = id;}

    private static void print(String args) {
//        System.out.println(args);
    }

    public void showContent() {
        print("id: " + id);
        print("evaPerson: " + evaPerson);
        print("evaUnit: " + evaUnit);
        print("companyName: " + companyName);
        print("companyType: " + companyType);
        print("class1: " + class1);
        print("class2: " + class2);
        print("evaDate: " + evaDate);
    }

    public void dateChange() {
        this.evaDate = DateUtils.parseTimeZone(evaDate);
    }

}
